package com.youjia.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("user")
public class User extends BasePojo {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String phone;
    private String realname;
    private Integer level;
    private String email;
    private String idcard;
    private Boolean status;
//    @TableField(exist = false)  //该属性不存在
//    private Role role;  //定义role角色数据

}
